package com.futureCloudMOM.core.domain;

import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableName;
import com.futureCloudMOM.core.entity.FBaseEntity;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import org.hibernate.validator.constraints.Length;

import javax.validation.constraints.NotBlank;
import javax.validation.constraints.Size;
import java.io.Serializable;

@Data
@EqualsAndHashCode(callSuper = true)
@ApiModel(value = "Quality_Frequency", description = "检验频次")
@TableName(value = "Quality_Frequency")
public class QualityFrequency extends FBaseEntity implements Serializable {


    
    @NotBlank(message="[质检类型]不能为空")
    @Size(max= 500,message="编码长度不能超过500")
    @ApiModelProperty("质检类型")
    @Length(max= 500,message="编码长度不能超过500")
    @TableField(value = "qCCategory")
    private String qCCategory;
    
    @Size(max= 500,message="编码长度不能超过500")
    @ApiModelProperty("物料检验等级")
    @Length(max= 500,message="编码长度不能超过500")
    @TableField(value = "materialInspectionLevel")
    private String materialInspectionLevel;
    
    @Size(max= 500,message="编码长度不能超过500")
    @ApiModelProperty("批次最小值")
    @Length(max= 500,message="编码长度不能超过500")
    @TableField(value = "matchMinQty")
    private String matchMinQty;
    
    @Size(max= 500,message="编码长度不能超过500")
    @ApiModelProperty("批次最大值")
    @Length(max= 500,message="编码长度不能超过500")
    @TableField(value = "matchMaxQty")
    private String matchMaxQty;
    
    @Size(max= 500,message="编码长度不能超过500")
    @ApiModelProperty("质检等级")
    @Length(max= 500,message="编码长度不能超过500")
    @TableField(value = "inspectionLevel")
    private String inspectionLevel;
    
    @Size(max= 500,message="编码长度不能超过500")
    @ApiModelProperty("检验数量")
    @Length(max= 500,message="编码长度不能超过500")
    @TableField(value = "inspectionQty")
    private String inspectionQty;
    
    @ApiModelProperty("检验数量模式")
    @TableField(value = "inspectionRunType")
    private Long inspectionRunType;
    
    @Size(max= 500,message="编码长度不能超过500")
    @ApiModelProperty("升级数量条件")
    @Length(max= 500,message="编码长度不能超过500")
    @TableField(value = "levelUpQty")
    private String levelUpQty;
    
    @Size(max= 500,message="编码长度不能超过500")
    @ApiModelProperty("升级到检验等级")
    @Length(max= 500,message="编码长度不能超过500")
    @TableField(value = "levelUpToInspectionLevel")
    private String levelUpToInspectionLevel;
    
    @Size(max= 500,message="编码长度不能超过500")
    @ApiModelProperty("降级数量条件")
    @Length(max= 500,message="编码长度不能超过500")
    @TableField(value = "levelDownQty")
    private String levelDownQty;
    
    @Size(max= 500,message="编码长度不能超过500")
    @ApiModelProperty("降级到检验等级")
    @Length(max= 500,message="编码长度不能超过500")
    @TableField(value = "levelDownToInspectionLevel")
    private String levelDownToInspectionLevel;






}

